package com.wl.service;

import com.wl.model.Account;
import com.wl.model.User;
import com.wl.utils.PageUtil;
import com.wl.vo.UserAccount;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 *<p>Title: UserService.java</p>
 *<p>Description: 用户接口</p>
 *<p>CreateDate: 2017年6月11日</p>
 *@author shen
 *@version v1.0
 */
public interface UserService {

	List<User> userList();

	/**
	 * 注册
     */
	User register(UserAccount userAccount);

    User login(UserAccount userAccount);

	List<UserAccount> userAccountList(Integer page,Integer pageSize);

	User getUser(long userId);

	List<User> getLimitUser(PageUtil pageUtil);

	Integer getCountUser();

	void deleteUser(long userId);

	void addUser (User user) ;

	void updateUser (User user);

	List<User> findByUser(User user);





	@Transactional
	void disabledUser(Long userId);
}
